Skip to content

Docs: own and sync ClickHouse documentation#2945

Open
Blargian wants to merge 1 commit into
ClickHouse:mainfrom
Blargian:agent/own-clickhouse-docs
Open

Docs: own and sync ClickHouse documentation#2945
Blargian wants to merge 1 commit into
ClickHouse:mainfrom
Blargian:agent/own-clickhouse-docs

Conversation

@Blargian

Copy link
Copy Markdown
Member

Summary

Make ClickHouse/clickhouse-java the source of truth for its public ClickHouse documentation.

  • Copy the current Java documentation slice from ClickHouse/ClickHouse@21ed77718a5f454680497924d68e9f60a41e026c into docs/clickhouse-docs/, with trailing whitespace normalized. The dedicated subdirectory keeps repository-only engineering docs out of the published slice.
  • Add a scoped Mintlify verification workflow for changes to that slice.
  • Add a one-way sync workflow that opens or refreshes the corresponding ClickHouse/ClickHouse docs PR after a release, manual dispatch, or merge carrying the sync-docs label.

The published URLs and aggregator path remain unchanged. This does not change the Java API or runtime behavior.

After merge, maintainers should confirm the sync-docs label exists and the Workflow Auth GitHub App credentials are available to this repository.

Validation

  • All workflows pass actionlint v1.7.7 and YAML parsing.
  • git diff --check passes.
  • The migrated slice matches the current aggregator source after trailing-whitespace normalization.
  • Compatibility impact: none; documentation and CI only.

@Blargian Blargian changed the title Own and sync ClickHouse documentation Docs: own and sync ClickHouse documentation Jul 21, 2026
@Blargian
Blargian marked this pull request as ready for review July 22, 2026 09:20
@Blargian
Blargian requested a review from mzitnik as a code owner July 22, 2026 09:20
@Blargian

Copy link
Copy Markdown
Member Author

@chernser assuming the two failing checks here are unrelated to this change?

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 592e8d1. Configure here.

release)
if [[ "$RELEASE_PRERELEASE" == "true" ]]; then
echo "Release ${RELEASE_TAG} is a prerelease; skipping."
elif [[ "${RELEASE_TAG#v}" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+) ]]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release sync skips prereleases

Medium Severity

The new sync workflow skips published releases when github.event.release.prerelease is true, but the repository’s existing Release workflow always creates GitHub releases with --prerelease. The release trigger path therefore never runs after a normal release; docs only sync via sync-docs merges or manual dispatch unless someone later clears the prerelease flag by hand.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 592e8d1. Configure here.

with:
# On a release, take the docs as of the released tag; otherwise take
# the default checkout (post-merge default branch / dispatched ref).
ref: ${{ github.event_name == 'release' && github.event.release.tag_name || '' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fork merge checkout fails

High Severity

The sync job leaves actions/checkout@v5 on its default ref for merged pull_request_target runs. Since the July 2026 checkout backport, that default often resolves to the fork merge commit and the step refuses to check out, so the expedited sync-docs path can fail after external PRs merge even though the gate passed.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 592e8d1. Configure here.

### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
Sync language client documentation from \`${SOURCE_REPO}\`.
EOF
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indented heredoc breaks body

Medium Severity

The aggregator PR body is built with a plain heredoc whose lines are indented to match the YAML block. Bash keeps those leading spaces, so changelog headings and bullets are not at column zero and downstream ClickHouse/ClickHouse PR checks may not recognize the required template.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 592e8d1. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants